const express = require("express");
const path = require("path");
const staticPath = path.resolve(__dirname, "../pubilc");

const app = express();

//托管静态资源
app.use(express.static(staticPath));
//http
const port = "5003";
app.listen(port, () => {
  console.log("listening on 5003");
});

